package cn.xkshow.core.authorization.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "qx_role")
public class Role implements java.io.Serializable {

	// Fields

	private Integer id;
	private String levelTree;
	private Integer parentid;
	private String name;
	private Integer setting;
	private String notes;

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** full constructor */
	public Role(String levelTree, Integer parentid, String name,
			Integer setting) {
		this.levelTree = levelTree;
		this.parentid = parentid;
		this.name = name;
		this.setting = setting;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "level_tree", nullable = false)
	public String getLevelTree() {
		return this.levelTree;
	}

	public void setLevelTree(String levelTree) {
		this.levelTree = levelTree;
	}

	@Column(name = "parentid", nullable = false)
	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	@Column(name = "name", nullable = false, length = 45)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "setting", nullable = false)
	public Integer getSetting() {
		return this.setting;
	}

	public void setSetting(Integer setting) {
		this.setting = setting;
	}

	@Column(name = "notes")
	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

}